﻿@model GameSchool.Models.AssignTeacherViewModel

@{
    ViewBag.Title = "Assigning Teacher | GameSchool";
    Layout = "~/Views/Shared/_LayoutSupervisor.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <div class="mainSectionStuff">
        <h2>Choose a course</h2>
        <div class="editor-field">
            <ul>
                @foreach (var item in Model.courseName)
                { 
                    <li>@Html.RadioButtonFor(model => model.courseName, @item.courseID, false)@item.title</li>    
                }
            </ul>
        </div>
    </div>

    <div class="mainSectionStuff">
        <h2>Choose a teacher</h2>
        <div class="editor-field">
            <ul>
                @foreach (var item in Model.teacherName)
                {
                    <li>@Html.RadioButtonFor(model => model.teacherName, @item.teacherID, false)@item.name</li>         
                }
            </ul>
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </div>
}
